﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Categories.aspx.cs" Inherits="Interface.Houses.Categories" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="le-co-menu">
        <div class="le-co-ti-color">
            <div class="le-co-hi-title">Loại Nhà Trọ</div>
        </div>
        <div class="dlQ">
            <asp:Label ID="lbErrors" runat="server"></asp:Label>
            <asp:GridView ID="GridCategory" runat="server"  
            AllowPaging="True" PageSize = "4" AllowSorting="True"
            AutoGenerateColumns="False" 
            AutoGenerateEditButton="true" CellPadding="4" DataKeyNames="ID" 
            ShowFooter="true" >             
            <Columns>                                                             
              <asp:TemplateField HeaderText="STT">
              <ItemTemplate>
                        <asp:Label ID="lblSTT" runat="server" Text='<%# Eval("ID") %>' ></asp:Label>
                    </ItemTemplate>                                       
              </asp:TemplateField>
              <asp:TemplateField HeaderText="Loại Nhà Trọ">
                    <ItemTemplate>
                        <asp:Label ID="lbName" runat="server" Text='<%# Eval("Category") %>' ></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txtEditName" runat="server"></asp:TextBox>
                    </EditItemTemplate>  
                                      
              </asp:TemplateField>
            </Columns>           
    </asp:GridView>
            <table>
                <tr>
                    <td align="left">
                        Loại Nhà Trọ: 
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtCategory" runat="server"></asp:TextBox>
                    </td>                                     
                </tr>
               
                
                
                
                <tr>
                    <td align ="left">
                        <asp:Button ID="btnAdd" runat="server" Text="Thêm" onclick="btnAdd_Click" 
                            />
                    </td>                    
                </tr>    
            </table>
        
        </div>
    </div>
</asp:Content>

